#pragma once

namespace Cache{

template<typename Key,typename Value>
class CachePolicy{
public:
    virtual ~CachePolicy() {};
    //存放
    virtual void put(Key key,Value value)=0;
    //获取
    virtual Value get(Key key)=0;
    //传入参数的获取
    virtual bool get(Key key, Value& value)=0;
};
}
